{% extends "base.html" %}

{% block title %}课程信息 - 教育管理系统{% endblock %}

{% block content %}
<div class="container py-5">
    <h1 class="text-center mb-5">课程信息</h1>
    
    <div class="row row-cols-1 row-cols-md-3 g-4">
        {% for course in courses %}
        <div class="col">
            <div class="card h-100 shadow">
                <div class="card-body">
                    <h5 class="card-title">{{ course.name }}</h5>
                    <p class="card-text">{{ course.description }}</p>
                </div>
                <div class="card-footer bg-transparent">
                    <small class="text-muted">课程编号: {{ course.id }}</small>
                </div>
            </div>
        </div>
        {% endfor %}
    </div>
</div>
{% endblock %} 